FROM node:12.18.3 as v7-builder
WORKDIR /app
# RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
COPY package.json .
RUN npm install
COPY . .
RUN npm run build:pro

FROM nginx:1.16.0
COPY conf/prod/nginx.conf /etc/nginx/nginx.conf
COPY --from=v7-builder /app/dist /usr/share/nginx/html
COPY conf/wx/tir5Zhyccx.txt /usr/share/nginx/html
EXPOSE 80
RUN echo 'echo init ok!!'